package com.chaopei.account_mng.entity;

import lombok.AllArgsConstructor;
import lombok.Builder;
import lombok.Data;
import lombok.NoArgsConstructor;
import org.springframework.beans.factory.annotation.Value;

import javax.validation.constraints.Max;
import javax.validation.constraints.Min;

/**
 * @Author Corday 天涯
 * @Date 2022/5/11 17:59
 * 帐户实体
 */
@Data
@Builder
@NoArgsConstructor
@AllArgsConstructor
public class Account {
    //@Value("不能为空")
    private int id;
    //@Max(value = 10)
    //@Min(value=5)
    private String userName;
    private double balance;
}
